package com.wuhunyu.service;

import com.wuhunyu.commonutils.result.CommonResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 视频上传业务层
 *
 * @author wuhunyu
 * @version 1.0
 * @date 2021-01-20 14:55
 */
public interface VideoService {

    /**
     * 上传视频服务
     * @param file
     * @return
     */
    public CommonResult addVideo(MultipartFile file);

    /**
     * 根据视频id获取视频地址
     * @param videoId
     * @return
     */
    public CommonResult getVideo(String videoId);

    /**
     * 删除视频
     * @param videoId
     * @return
     */
    public CommonResult deleteVideo(String videoId);

    /**
     * 批量删除视频
     * @param videoIds
     * @return
     */
    public CommonResult deleteVideos(List<String> videoIds);

    /**
     * 根据视频id获取视频播放凭证
     * @param videoId
     * @return
     */
    public CommonResult getPlayAuth(String videoId);

}
